﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SmallJob.Data.Interfaces;
using SmallJob.Model;

namespace SmallShop.Services.Interfaces
{
    public interface IMessageService: IRepository<Message>
    {
        int CountUnread(int userID);
        List<Conversation> GetConversationById(int personId);
        void LoadConversation(Conversation conversation);
        Message GetById(long Id);

        Conversation GetConversationByOrderId(int orderId);

        int CountUnreadOrder(int p);

        List<Conversation> GetConversationOrderById(int p);

    }
}
